You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLMtxVec Class > TOpenCLMtxVec Methods > Rem Method > TOpenCLMtxVec.Rem Method ([In] TOpenCLMtxVec, [In] TOpenCLMtxVec)
Dew Math for .NET
ContentsIndexHome
Example
using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TOpenCLVector a,b,c; clMtxVec.CreateIt(out a, out b, out c); try { a.CopyFromArray( new double[] {0,1,10,-1,-10}); // a = [0, 1, 10, -1, -10]; b.CopyFromArray(new double[],{0,1,System.Math.PI,-1,-System.Math.PI}); // b = [0, 1, PI, -1, -PI]; c.Rem(a,b); // c = [0, 0, 0.5752, 0, -0.5752] } finally { clMtxVec.FreeIt(ref a,ref b,ref c); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.